<html>
    <head>
        <title>Test</title>
        <style></style>
        <script>

document.on("click","button#show", function() {
  var retval = Window.this.modal {
    url: __DIR__ + "dialog.htm",
    alignment:-8,
  };
  console.log(JSON.stringify(retval));
});

        </script>
    </head>
    <body>

<button #show>Show dialog</button>

    </body>
</html>